<div class="col-lg-12">
	<!--当前位置 start-->
	<div class="row">
		<div class="col-lg-12">
			<ol class="breadcrumb">
				<li><a><i class="fa fa-home mrg-r-sm"></i>首页</a>
				</li>
				<li class="active"><span>订单详情页面</span>
				</li>
			</ol>
		</div>
	</div>
	<!--当前位置 end-->

	<!--代码写在这里-->
	<div class="row">

		<div class="col-lg-12">
			<div class="main-box">
				<header class="main-box-header clearfix">
					<h2>&nbsp;</h2>
				</header>
				<div class="main-box-body clearfix">
					<form class="form-horizontal" role="form">
						<div class="form-group">
							<label class="col-lg-2 control-label">订单人姓名</label>
							<div class="col-lg-6">
								<input value=" "  type="hidden" disabled class="form-control" ng-model="order.order_id"/>
								<input value=" "  type="text" disabled class="form-control" ng-model="order.name"/>
							</div>
						</div>
						
						<div class="form-group" >
							<label class="col-lg-2 control-label">联系地址</label>
							<div class="col-lg-6">					
								<input type="text" class="form-control" disabled  value="" ng-model="order.address"/>
							</div>
						</div>
						<div class="form-group" >
							<label class="col-lg-2 control-label">服务项目</label>
							<div class="col-lg-2">	
								<input type="text" class="form-control" disabled  value="" ng-model="order.serviceType1_title"/>
							</div>
							<div class="col-lg-2">					
								<input type="text" class="form-control" disabled  value="" ng-model="order.serviceType2_title"/>
							</div>
							<div class="col-lg-2">					
								<input type="text" class="form-control" disabled  value="" ng-model="order.serviceType3_title"/>
							</div>
						</div>
						<div class="form-group" >
							<label class="col-lg-2 control-label">预约时间</label>
							<div class="col-lg-6">					
								<input type="text" class="form-control" disabled  value="" ng-model="order.time"/>
							</div>
						</div>
						<div class="form-group" >
							<label class="col-lg-2 control-label">订单详情</label>
							<div class="col-lg-6">
								<textarea class="form-control" ng-model="order.detail" value="" disabled></textarea>
							</div>
						</div>
						<div class="form-group" >
							<label class="col-lg-2 control-label">订单状态</label>
							<div class="col-lg-6">					
								<input type="text" class="form-control" disabled  value="" ng-model="order.status"/>
							</div>
						</div>
						<div class="form-group" ng-if="order.status=='试工中'" >
							<label class="col-lg-2 control-label"></label>
							<div class="col-lg-6">					
								<a class="btn btn-danger" ng-click="trialContract()" >生成试工合同</a> 
								<a class="btn btn-danger" ng-click="trialContract()">重置试工状态</a>
								<a class="btn btn-danger" ng-click="trialContract()">查看历史合同</a>
							</div>
						</div>
						<div class="form-group" ng-if="order.status=='服务中'" >
							<label class="col-lg-2 control-label"></label>
							<div class="col-lg-6">					
								<a class="btn btn-danger"  ng-click="trialContract()">生成服务合同</a> 
								<a class="btn btn-danger" ng-click="trialContract()">查看历史合同</a>
							</div>
						</div>
						<div class="form-group" >
							<label class="col-lg-2 control-label">当前受理企业</label>
							<div class="col-lg-6">					
								<input type="text" class="form-control" disabled value="" ng-model="order.selected_company_name"/>
							</div>
						</div>
						<div class="form-group" ng-if="rsvOrder.attribute!=undfinded" >
							<label class="col-lg-2 control-label">其他</label>
							<div class="col-lg-6">	
								<div class="form-control" disabled  style="height: auto;">
									<div ng-repeat="item  in rsvOrder.attribute">
										{{item.title}}:{{item.content}} 
									</div>
									<div style="clear: both;"></div>
								</div>
							</div>
						</div>
						<div class="form-group" >
							<label class="col-lg-2 control-label">订单金额</label>
							<div class="col-lg-6">					
								<input type="text" class="form-control" disabled  value="" ng-model="order.amount"/>
							</div>
						</div>
						 <h3>服务历史追踪</h3>
						<div class="main-box-body clearfix" >
							<div class="table-responsive">
								<table class="table table-hover table-striped text-center">
									<thead >
										<tr>
											<th class="text-center"><span>操作时间</span></th>
											<th class="text-center"><span>操作人员</span></th>
											<th class="text-center"><span>操作行为</span></th>
											<th class="text-center"><span>操作类型</span></th>
										</tr>
									</thead>
									<tbody >
										<tr role="row" class="odd"  ng-repeat="item in historylist" >
											<td class="sorting_1">{{item.time}}</td>
											<td>{{item.username}}</td>
											<td>{{item.action}}</td>
											<td>{{item.type}}</td>
										</tr>
										
									</tbody>
								</table>
							</div>
						</div>
						<h3>督办历史追踪</h3>
						<div class="main-box-body clearfix" >
							<div class="table-responsive">
								<table class="table table-hover table-striped text-center">
									<thead >
										<tr>
											<th class="text-center"><span>操作时间</span></th>
											<th class="text-center"><span>操作备注</span></th>
											<th class="text-center"><span>操作人</span></th>
										</tr>
									</thead>
									<tbody >
										<tr role="row" class="odd" ng-repeat="item in dubanlist" id="{{item.order_id}}" >
											<td class="sorting_1">{{item.time}}</td>
											<td>{{item.info}}</td>
											<td>{{item.name}}</td>
										</tr>
									</tbody>
								</table>
							</div>
						</div>
				       <h3>退单记录</h3>
						<div class="main-box-body clearfix" >
							<div class="table-responsive">
								<table class="table table-hover table-striped text-center">
									<thead >
										<tr>
											<th class="text-center"><span>操作时间</span></th>
											<th class="text-center"><span>操作备注</span></th>
											<th class="text-center"><span>操作人</span></th>
										</tr>
									</thead>
									<tbody >
										<tr role="row" class="odd" ng-repeat="item in backOrderList" id="{{item.order_id}}" >
											<td class="sorting_1">{{item.time}}</td>
											<td>{{item.reason}}</td>
											<td>{{item.company_name}}</td>
										</tr>
									</tbody>
								</table>
							</div>
						</div>
						<h3>备注记录</h3>
						<div class="main-box-body clearfix" >
							<div class="table-responsive">
								<table class="table table-hover table-striped text-center">
									<thead >
										<tr>
											<th class="text-center"><span>时间</span></th>
											<th class="text-center"><span>内容</span></th>
											<th class="text-center"><span>用户</span></th>
										</tr>
									</thead>
									<tbody >
										<tr role="row" class="odd" ng-repeat="item in  remarkList">
											<td class="sorting_1">{{item.time}}</td>
											<td>{{item.context}}</td>
											<td>{{item.user}}</td>
										</tr>
									</tbody>
								</table>
							</div>
						</div>
						<div class="form-group">
							<div class="col-lg-offset-2 col-lg-6">
								<a class="btn btn-danger" href="#/order">取消</a>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>